import Null from '@/views/Null'

// 系统管理相关的路由
export default{
    path: '/system',
    meta: {
        title: '系统管理',
        icon: 'el-icon-star-off'
    },
    // redirect:'/department',
    component: () =>import('@/views/Null'),
    children: [
        {
            path: '/department',
            name: 'department',
            component: () => import('@/views/department/DepartmentList'),
            meta: {
                title: '部门管理',
                icon: 'el-icon-office-building'
            }
        },
        {
            path: '/role',
            name: 'role',
            component: () => import('@/views/role/Role'),
            meta: {
                title: '职位管理',
                icon: 'el-icon-suitcase-1'
            }
        },
        {
            path: '/adminuser/list',
            name: 'adminuser',
            component: () => import('@/views/adminuser/AdminUser'),
            meta: {
                title: '教职工管理',
                icon: 'el-icon-s-custom'
            },
            redirect: '/adminuser/list',
            children: [
                {
                    path: '/adminuser/list',
                    name: 'adminuser-list',
                    component: () => import('@/views/adminuser/AdminUserList'),
                    meta: {
                        title: '教职工列表',
                        icon: ''
                    }
                },
                {
                    path: '/adminuser/add',
                    component: () => import('@/views/adminuser/AdminUserForm'),
                    meta: {
                        title: '添加教职工',
                        icon: ''
                    }
                },
            ]
        },
    ]
}